function compare(value1,value2){
    if(value1 < value2){
        return -1;
    }
    else if(value1 > value2){
        return 1;
    }
    else{
        return 0;
    }
}
var result = compare(5,5);
console.log(result)
